﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FXFinanceLeaseMasterList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.FXModel.FXFinanceLeaseMasterList" %>
<%--风险部人员使用 融资租赁 --%>

<div class="pageContent"  style="padding:5px;">    

        <div id="FXFinanceLeaseMasterList" layoutH="12" valign="top"  style=" display:block; overflow:auto; border-width:1px 1px 0px 1px; border-color:#CCC; border-style:solid; background:#fff;">
            <form id="pagerForm" method="post" action="FXModel/FXFinanceLeaseMasterList.aspx">
                <input type="hidden" name="AliasName" value="<%=AliasName %>" />
                 <input type="hidden" name="LeaseStatus" value="<%=LeaseStatus %>" />
                <input type="hidden" name="CustomerName" value="<%=CustomerName %>" />                
                <input type="hidden" name="LeaseCompany" value="<%=LeaseCompany %>" />
                <input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
                <input type="hidden" name="ContractNum" value="<%=ContractNum %>" />
                <input type="hidden" name="FnncLsId" value="<%=FnncLsId %>" />                
                <input type="hidden" name="onlyshowExpiryPeriods" value="<%=onlyshowExpiryPeriods %>" />
                <input type="hidden" name="LoansDateFrom" value="<%=LoansDateFrom %>" />
                <input type="hidden" name="LoansDateTo" value="<%=LoansDateTo %>" />
                <input type="hidden" name="orderField" value="<%=orderField %>" />
                <input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
                <input type="hidden" name="pageNum" value="1" />
                <input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
            </form>
            <form id="FXFinanceLeaseMasterListFrom" runat="server" method="post" action="FXModel/FXFinanceLeaseMasterList.aspx" onsubmit="return navTabSearch(this);">
            <div class="panelBar" style=" border-width:0px!important;">
                    <ul class="toolBar">
                        <% if (HasPower(IHISCETeim.Web.Permission.新增))
                            {%>
                        <li><a class="add" href="javascript:FXFinanceLeaseMasterList_ADD()"     title="添加作业确认表"><span>添加</span></a></li>
                        <%} %>
                        <% if (HasPower(IHISCETeim.Web.Permission.删除))
                            {%>
                        <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=deletefxfinancelease&FnncLsId={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
                        <%} %>   
                                                        
                    </ul>
            </div>
            <div class="tabs" style=" border-width:0px!important;" currentIndex="<%=LeaseStatus==-1?"1":LeaseStatus==0?"2":LeaseStatus==1?"3":LeaseStatus==2?"4":LeaseStatus==3?"5":LeaseStatus==4?"6":"0" %>" eventType="click">
                <div class="tabsHeader" style=" border-width:0px!important;">
		            <div class="tabsHeaderContent" style=" border-width:0px!important;">
			            <ul>
                            <li><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('-2'); FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>未上报(<b style="color:red;"><%=GetLeaseStatusCount("未上报")%></b>)</span></a></li>
                            <li><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('-1'); FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>全部</span></a></li>
                            <li><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('0');FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>IHISCE审核中(<b style="color:red;"><%=GetLeaseStatusCount("IHISCE审核中")%></b>)</span></a></li>
				            <li ><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('1');FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>租赁公司审核中(<b style="color:red;"><%=GetLeaseStatusCount("审核中")%></b>)</span></a></li>
				            <li><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('2');FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>审核通过(<b style="color:red;"><%=GetLeaseStatusCount("审核通过")%></b>)</span></a></li>
                            <li><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('3');FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>待放款(<b style="color:red;"><%=GetLeaseStatusCount("待放款")%></b>)</span></a></li>
                            <li ><a href="javascript:;" onclick="$('#FXFinanceLeaseMasterList_LeaseStatus').val('4');FXFinanceLeaseMasterList_SettingDefault();navTabSearch(FXFinanceLeaseMasterListFrom)"><span>已放款(<b style="color:red;"><%=GetLeaseStatusCount("已放款")%></b>)</span></a></li>
			            </ul>
		            </div>
	            </div>
	            <div class="tabsContent" style=" display:none;"></div>
            </div>
            <div class="pageHeader" style="overflow:hidden!important;">
                <div class="searchBar">
                <%if (LeaseStatus != -2)
                  { %>
                    <table class="searchContent">
                        <tr>
                            <input type="hidden" id="FXFinanceLeaseMasterList_LeaseStatus" name="LeaseStatus" value="<%=LeaseStatus %>" />                                       
                            <td>经销商:</td>
                            <td><input name="AliasName" type="text" class="autocomplete" size="8" value="<%=AliasName %>" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getagentlist" mustMatch="true" swidth="300" showinputid=""/></td>
                            <td>租赁公司：</td>
                            <td> <%=GetLeaseCompany("LeaseCompany", LeaseCompany)%></td>
                            <td>机号:</td>
                            <td><input name="SerialNumber" type="text" size="8" value="<%=SerialNumber %>" /></td> 
                             <%if (LeaseStatus == 4)
                               { %>
                            <td >
                            <label>只显示逾期为</label>
                            <select name="onlyshowExpiryPeriods">
                                <%=GetonlyshowExpiryPeriods()%>
                            </select>
                            </td>
                            <%} %>
                             <td  >
                                <div class="subBar">
                                    <ul>
                                        <li>
                                            <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                                        </li>
                                    </ul>
                                </div>
                            </td> 
                            <%if (LeaseStatus == 4)
                              { %>
                            <td  rowspan="2">
                                <div style="line-height:12px!important;">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    总单数：<b style="color:red;"><%=FormatDecimalToStrings(getsum("总单数"), "g")%></b><br/>
                                    已结清单数：<b style="color:red;"><%=FormatDecimalToStrings(getsum("已结清单数"), "g")%></b><br/>
                                    未结清单数：<b style="color:red;"><%=FormatDecimalToStrings(getsum("未结清单数"), "g")%></b><br/>
                                    逾期数据更新时间:<b style="color:red;"><%=IHISCETeim.BLL.FXFinanceLeaseController.GetLastRefresDate()%></b>
                                </div>
                            </td>  
                            <%} %>                             
                        </tr>
                        <tr>
                            <td>用户：</td>
                            <td><input name="CustomerName"  type="text" size="8" value="<%=CustomerName %>"  /></td>
                            <td>合同号：</td>
                            <td><input name="ContractNum" type="text" size="8" value="<%=ContractNum %>" /></td>
                            <td>编号：</td>
                            <td><input name="FnncLsId" type="text"  size="8" value="<%=FnncLsId %>" /></td>
                             <%if (LeaseStatus == 4)
                               { %>
                            <td>
                                放款日期:<input name="LoansDateFrom" class="date" size="8" value="<%=LoansDateFrom %>" />到
                                        <input name="LoansDateTo"  class="date" size="8" value="<%=LoansDateTo %>"/>
                            </td>
                           <%} %>
                           <td>
                             <div class="subBar">
                                <ul>
                                    <li>
                                        <div class="buttonActive"><div class="buttonContent"><a href="<%=ExportExcelWebUrl %>/FXModel/FXFinanceLease.aspx?LeaseStatus=<%=LeaseStatus %>&LeaseCompany=<%=HttpUtility.UrlEncode(LeaseCompany) %>&AliasName=<%=HttpUtility.UrlEncode(AliasName) %>&SerialNumber=<%=SerialNumber %>&CustomerName=<%=HttpUtility.UrlEncode(CustomerName) %>&ContractNum=<%=ContractNum %>&FnncLsId=<%=FnncLsId %>&LoansDateFrom=<%=LoansDateFrom %>&LoansDateTo=<%=LoansDateTo %>&onlyshowExpiryPeriods=<%=onlyshowExpiryPeriods %>" target="_blank" title="确定要导出吗?" style=" line-height:25px!important;" >导出</a></div></div>
                                    </li>
                                </ul>
                            </div>
                           </td>
                        </tr>
                    </table>     
                    <%}
                  else
                  {%>   
                   <table class="searchContent">
                   <tr>
                    <td>
                        最后更新时间:<b style="color:red;"><%=IHISCETeim.BLL.FXFinanceLeaseController.GetWSBLasRefresDate()%></b>
                    </td>
                   </tr>
                   </table>
                    <%} %>
                </div>
            </div>
            <div class="pageContent" > 

                <%if (LeaseStatus == -2)
                  { %>

                  <table class="list" width="100%" layouth="135" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                   
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>
                     <th align="center" >用户</th>
                    <th  >销售日期</th>
                    <th  >合同金额(万元)</th> 
                    <th>进度跟踪</th>                 
                </tr>
                </thead>
                <asp:repeater id="rpMenu000" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr class="totalitemtr">
                        <td >合计:</td>                        
			            <td></td><td></td>
                        <td></td>
                        <td><%=getsum("LContractAmount")%></td>
                       <td></td>
                       
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr >
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("SerialNumber")%></td>
                        <td><%# Eval("CustomerName")%></td>
                        <td><%# Eval("SaleDate")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LContractAmount"),"N")%></td>
                        <td>
                            <input name="remark" class="rpMenu000_ReMark" id="<%# Eval("ID")%>" type="text" value="<%# Eval("ReMark")%>" />
                        </td>
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                       
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                <script type="text/javascript">
                    $(document).ready(function () {
                        $("input.rpMenu000_ReMark").blur(function () {
                            //alert($(this).attr("id"));
                            var data2 = {ajaxupdatewsb:"upd", id: $(this).attr("id"), remark: $(this).val() };
                            $.ajax({
                                type: 'POST',
                                url: "FXModel/FXFinanceLeaseMasterList.aspx",
                                data: data2,
                                dataType: "json",
                                cache: false,
                                success: function (a) {  },
                                error: function () { }
                            });
                        })
                    })
                </script>
                  <%} %>
                <%if (LeaseStatus ==-1)
                  { %>
                <table class="table" width="3500" layouth="185" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                   <th <%=GetDataListOrder("LeaseStatus") %>>进度</th>   
                     <th <%=GetDataListOrder("FnncLsId") %>>编号</th>                  
                    <th <%=GetDataListOrder("LeaseCompany") %>>租赁公司</th>      
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                    <th align="center" >用户</th>
                    <th  <%=GetDataListOrder("MachineType") %>>机型</th>
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>
                    <th  align="center" <%=GetDataListOrder("LExpiresYear") %>>期限(年)</th>
                    <th  <%=GetDataListOrder("LTotalPrice") %>>售价 </th>
                    <th  >首付(%)</th>
                    <th >首付金额</th>
                    <th  >融资额 </th>                    
                    
                    <th >月租金</th>
                    <th >期数</th>
                   
                    <th  >合同金额</th>
                   <th >首付(置换)分期申请</th>

                    

                     <th >应付首付款</th>
                    <th <%=GetDataListOrder("LPayStatus") %>>应付首付款支付</th>
                    <th >管理费</th>
                    <th <%=GetDataListOrder("LMFeeStatus") %>>管理费支付</th>
                    
                     <th <%=GetDataListOrder("LOrderDate") %>>接单日期</th>
                    <th <%=GetDataListOrder("OGetDate") %>>资料收齐日期</th>
                    <th <%=GetDataListOrder("OSubmitDate") %>>提交审核日期</th>
                    <th <%=GetDataListOrder("PassDate") %>>审核通过日期</th>  
                    <th <%=GetDataListOrder("LoansDate") %>>预计放款日期</th>  


                   <th <%=GetDataListOrder("OContractPost") %>>合同邮寄情况</th>                     
                    <th <%=GetDataListOrder("OInsureStatus") %>>投保情况</th>
                    <th >GPS号</th>
                    <th >联系电话</th>
                    <th >地址</th>
                    <th>备注</th>
                    
                  
                </tr>
                </thead>
                <asp:repeater id="rpMenu00" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr class="totalitemtr">
                        <td></td><td></td><td></td>
                        <td >合计:</td>                        
			            <td></td><td></td><td></td><td></td>
                        <td><%=getsum("LTotalPrice")%></td>
                        <td></td>
                        <td><%=getsum("LDownAmount")%></td>
                        <td><%=getsum("LAmountFinancing")%></td>
                        
                        <td></td><td></td>
                        
                        <td><%=getsum("LContractAmount")%></td>
                        <td></td>

                       
                        <td ><%=getsum("LPay")%></td>
                        <td></td>
                        <td ><%=getsum("LMFee")%></td>
                       <td></td>
                       
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                       <td></td>
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr target="sid_user" rel="<%# Eval("FnncLsId") %>" ondblclick="FXFinanceLeaseMasterList_RowEdit(<%# Eval("FnncLsId") %>)" >
                        <td><%# GetGoLeaseStatusUrl(Eval("FnncLsId"), Eval("LeaseStatus"))%></td>
                        <td><%# Eval("FnncLsId")%></td>
                       
                        <td ><%# Eval("LeaseCompany")%></td>  
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("CustomerName")%></td>
                         <td><%# Eval("MachineType")%></td>
                        <td><%# Eval("SerialNumber")%></td>                        

			            <td><%# FormatDecimalToStrings(Eval("LExpiresYear"),"g")%></td>
                        <td><%# GetShowDBDecimal(Eval("LTotalPrice"))%></td>
                        <td><%# FormatDecimalToStrings(Eval("LowProportion"),"g")%></td>
                        <td><%# GetShowDBDecimal(Eval("LDownAmount"))%></td>
                        <td><%# GetShowDBDecimal(Eval("LAmountFinancing"))%></td>
                        
                        <td><%# GetShowDBDecimal(Eval("LMonthRent"))%> <%# Convert.ToDecimal(Eval("LMonthRent2")) == 0 ? "" : "/" + GetShowDBDecimal(Eval("LMonthRent2"))%></td>
                        <td><%# Eval("LExpiresMonth")%> <%# Convert.ToDecimal(Eval("LExpiresMonth2")) == 0 ? "" : "/" + Convert.ToString(Eval("LExpiresMonth2"))%></td>
                        
                        <td><%# GetShowDBDecimal(Eval("LContractAmount"),true)%></td>
                        <td><%# Eval("LByStages ")%></td>

                       
                        <td ><%# GetShowDBDecimal(Eval("LPay"))%></td>
                        <td><%# getLPayStatus(Eval("LPayStatus")) %></td>
                        <td ><%# GetShowDBDecimal(Eval("LMFee"))%></td>
                         <td><%# getLMFeeStatus(Eval("LMFeeStatus"))%></td>
                       

                         <td><%# GetDateShowType(Eval("LOrderDate"))%></td>
                         <td><%# GetDateShowType(Eval("OGetDate"))%></td>
                        <td><%# GetDateShowType(Eval("OSubmitDate"))%></td>
                        <td><%# GetDateShowType(Eval("PassDate"))%></td>
                        <td><%# GetDateShowType(Eval("LoansDate"))%></td>


                       <td><%# Eval("OContractPost ")%></td>
                        <td><%# getOInsureStatus(Eval("OInsureStatus")) %></td>
                        <td><%# Eval("GPSNumber")%></td>
                       <td><%# Eval("CustomerMobile ")%></td>
                        <td><%# Eval("CustomerAddress ")%></td>
                       <td><%# Eval("ORemark") %></td>
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                       
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                <%} %>
                <%if (LeaseStatus == 0)
                  { %>
                <table class="table" width="3500" layouth="185" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                  
                     <th <%=GetDataListOrder("FnncLsId") %>>编号</th>                  
                    <th <%=GetDataListOrder("LeaseCompany") %>>租赁公司</th>      
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                    <th align="center" >用户</th>
                    <th  <%=GetDataListOrder("MachineType") %>>机型</th>
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>
                    <th  align="center" <%=GetDataListOrder("LExpiresYear") %>>期限(年)</th>
                    <th  <%=GetDataListOrder("LTotalPrice") %>>售价 </th>
                    <th  >首付(%)</th>
                    <th >首付金额</th>
                    <th  >融资额 </th>                    
                    
                    <th >月租金</th>
                    <th >期数</th>
                   
                    <th  >合同金额</th>
                   <th >首付(置换)分期申请</th>

                    

                     <th >应付首付款</th>
                    <th <%=GetDataListOrder("LPayStatus") %>>应付首付款支付</th>
                    <th >管理费</th>
                    <th <%=GetDataListOrder("LMFeeStatus") %>>管理费支付</th>
                    
                    <th <%=GetDataListOrder("LOrderDate") %>>接单日期</th>
                    <th <%=GetDataListOrder("OGetDate") %>>资料收齐日期</th>
                    <th <%=GetDataListOrder("OSubmitDate") %>>提交审核日期</th>  
                   <th <%=GetDataListOrder("OContractPost") %>>合同邮寄情况</th>                     
                    <th <%=GetDataListOrder("OInsureStatus") %>>投保情况</th>
                    <th >GPS号</th>
                    <th >联系电话</th>
                    <th >地址</th>
                    <th>备注</th>
                </tr>
                </thead>
                <asp:repeater id="rpMenu0" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr class="totalitemtr" >
                        <td></td>
                       
                        <td></td> 
                        <td >合计：</td>                        
			            <td></td><td></td><td></td><td></td>
                        <td><%=getsum("LTotalPrice")%></td>
                        <td></td>
                        <td><%=getsum("LDownAmount")%></td>
                        <td><%=getsum("LAmountFinancing")%></td>
                        
                        <td></td><td></td>
                        
                        <td><%=getsum("LContractAmount")%></td>
                       <td></td>

                       
                        <td ><%=getsum("LPay")%></td>
                        <td></td>
                        <td ><%=getsum("LMFee")%></td>
                        <td></td>
                       
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                       <td></td>
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr target="sid_user" rel="<%# Eval("FnncLsId") %>" ondblclick="FXFinanceLeaseMasterList_RowEdit(<%# Eval("FnncLsId") %>)" >
                        <td><%# Eval("FnncLsId")%></td>
                       
                        <td ><%# Eval("LeaseCompany")%></td>  
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("CustomerName")%></td>
                         <td><%# Eval("MachineType")%></td>
                        <td><%# Eval("SerialNumber")%></td>                        

			            <td><%# FormatDecimalToStrings(Eval("LExpiresYear"),"g")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LTotalPrice"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LowProportion"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LDownAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LAmountFinancing"), "N")%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LMonthRent"),"N")%> <%# Convert.ToDecimal(Eval("LMonthRent2")) == 0 ? "" : "/" + FormatDecimalToStrings(Eval("LMonthRent2"),"N")%></td>
                        <td><%# Eval("LExpiresMonth")%> <%# Convert.ToDecimal(Eval("LExpiresMonth2")) == 0 ? "" : "/" + Convert.ToString(Eval("LExpiresMonth2"))%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LContractAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LByStages"),"N")%></td>

                       
                        <td ><%# FormatDecimalToStrings(Eval("LPay"),"N")%></td>
                        <td><%# getLPayStatus(Eval("LPayStatus")) %></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFee"),"N")%></td>
                         <td><%# getLMFeeStatus(Eval("LMFeeStatus"))%></td>
                       
                        <td><%# GetDateShowType(Eval("LOrderDate"))%></td>
                         <td><%# GetDateShowType(Eval("OGetDate"))%></td>
                        <td><%# GetDateShowType(Eval("OSubmitDate"))%></td>
                       <td><%# Eval("OContractPost ")%></td>
                       
                        <td><%# getOInsureStatus(Eval("OInsureStatus")) %></td>
                        <td><%# Eval("GPSNumber")%></td>
                       <td><%# Eval("CustomerMobile ")%></td>
                        <td><%# Eval("CustomerAddress ")%></td>
                       <td><%# Eval("ORemark ")%></td>
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                      
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                <%} %>
                <%if (LeaseStatus == 1)
                  { %>
                <table class="table" width="3500" layouth="185" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                  
                     <th <%=GetDataListOrder("FnncLsId") %>>编号</th>                  
                    <th <%=GetDataListOrder("LeaseCompany") %>>租赁公司</th>      
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                    <th align="center" >用户</th>
                    <th  <%=GetDataListOrder("MachineType") %>>机型</th>
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>
                    <th  align="center" <%=GetDataListOrder("LExpiresYear") %>>期限(年)</th>
                    <th  <%=GetDataListOrder("LTotalPrice") %>>售价 </th>
                    <th  >首付(%)</th>
                    <th >首付金额</th>
                    <th  >融资额 </th>                    
                    
                    <th >月租金</th>
                    <th >期数</th>
                   
                    <th  >合同金额</th>
                   <th >首付(置换)分期申请</th>

                    

                     <th >应付首付款</th>
                    <th <%=GetDataListOrder("LPayStatus") %>>应付首付款支付</th>
                    <th >管理费</th>
                    <th <%=GetDataListOrder("LMFeeStatus") %>>管理费支付</th>
                    
                    <th <%=GetDataListOrder("LOrderDate") %>>接单日期</th>
                    <th <%=GetDataListOrder("OGetDate") %>>资料收齐日期</th>
                    <th <%=GetDataListOrder("OSubmitDate") %>>提交审核日期</th>  
                   <th <%=GetDataListOrder("OContractPost") %>>合同邮寄情况</th>                     
                    <th <%=GetDataListOrder("OInsureStatus") %>>投保情况</th>
                    <th >联系电话</th>
                    <th >地址</th>
                    <th >GPS号</th>
                   <th>备注</th>
                    
                  
                </tr>
                </thead>
                <asp:repeater id="rpMenu1" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr class="totalitemtr"  >
                        <td></td>
                       
                        <td></td>  
                        <td >合计：</td>                        
			            <td></td><td></td><td></td><td></td>
                        <td><%=getsum("LTotalPrice")%></td>
                        <td></td>
                        <td><%=getsum("LDownAmount")%></td>
                        <td><%=getsum("LAmountFinancing")%></td>
                        
                        <td></td><td></td>
                        
                        <td><%=getsum("LContractAmount")%></td>
                        <td></td>
                        <td ><%=getsum("LPay")%></td>
                        <td></td>
                        <td ><%=getsum("LMFee")%></td>
                        <td></td>
                       
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>   
                        <td></td>
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr target="sid_user" rel="<%# Eval("FnncLsId") %>" ondblclick="FXFinanceLeaseMasterList_RowEdit(<%# Eval("FnncLsId") %>)" >
                        <td><%# Eval("FnncLsId")%></td>
                       
                        <td ><%# Eval("LeaseCompany")%></td>  
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("CustomerName")%></td>
                         <td><%# Eval("MachineType")%></td>
                        <td><%# Eval("SerialNumber")%></td>                        

			            <td><%# FormatDecimalToStrings(Eval("LExpiresYear"),"g")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LTotalPrice"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LowProportion"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LDownAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LAmountFinancing"),"N")%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LMonthRent"),"N")%> <%# Convert.ToDecimal(Eval("LMonthRent2")) == 0 ? "" : "/" + FormatDecimalToStrings(Eval("LMonthRent2"),"N")%></td>
                        <td><%# Eval("LExpiresMonth")%> <%# Convert.ToDecimal(Eval("LExpiresMonth2")) == 0 ? "" : "/" + Convert.ToString(Eval("LExpiresMonth2"))%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LContractAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LByStages "),"N")%></td>

                       
                        <td ><%# FormatDecimalToStrings(Eval("LPay"),"N")%></td>
                        <td><%# getLPayStatus(Eval("LPayStatus"))%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFee"),"N")%></td>
                         <td><%# getLMFeeStatus(Eval("LMFeeStatus")) %></td>
                       
                        <td><%# GetDateShowType(Eval("LOrderDate"))%></td>
                         <td><%# GetDateShowType(Eval("OGetDate"))%></td>
                        <td><%# GetDateShowType(Eval("OSubmitDate"))%></td>
                       <td><%# Eval("OContractPost ")%></td>
                       
                        <td><%# getOInsureStatus(Eval("OInsureStatus")) %></td>
                       <td><%# Eval("CustomerMobile ")%></td>
                        <td><%# Eval("CustomerAddress ")%></td>
                        <td><%# Eval("GPSNumber")%></td>
                        <td><%# Eval("ORemark")%></td>
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                       
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                
                <%} %>
                <%if (LeaseStatus == 2)
                  { %>
                <table class="table" width="3500" layouth="185" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                  
                     <th <%=GetDataListOrder("FnncLsId") %>>编号</th>                  
                    <th <%=GetDataListOrder("LeaseCompany") %>>租赁公司</th>      
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                    <th align="center" >用户</th>
                    <th  <%=GetDataListOrder("MachineType") %>>机型</th>
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>
                    <th  align="center" <%=GetDataListOrder("LExpiresYear") %>>期限(年)</th>
                    <th  <%=GetDataListOrder("LTotalPrice") %>>售价 </th>
                    <th  >首付(%)</th>
                    <th >首付金额</th>
                    <th  >融资额 </th>                    
                    
                    <th >月租金</th>
                    <th >期数</th>
                   
                    <th  >合同金额</th>
                   <th >首付(置换)分期申请</th>

                    

                     <th >应付首付款</th>
                      <th >已付首付款</th>
                    <th <%=GetDataListOrder("LPayStatus") %>>应付首付款支付</th>
                    <th >管理费</th>
                    <th >已付管理费</th>
                    <th <%=GetDataListOrder("LMFeeStatus") %>>管理费支付</th>
                    
                    <th <%=GetDataListOrder("LOrderDate") %>>接单日期</th>
                    <th <%=GetDataListOrder("OGetDate") %>>资料收齐日期</th>
                    <th <%=GetDataListOrder("OSubmitDate") %>>提交审核日期</th>
                    <th <%=GetDataListOrder("PassDate") %>>审核通过日期</th>   
                   <th <%=GetDataListOrder("OContractPost") %>>合同邮寄情况</th>                     
                    <th <%=GetDataListOrder("OInsureStatus") %>>投保情况</th>
                    <th >GPS号</th>
                    <th >联系电话</th>
                    <th >地址</th>
                    <th>备注</th>                  
                </tr>
                </thead>
                <asp:repeater id="rpMenu2" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr  class="totalitemtr"  >
                        <td></td>
                       
                        <td></td> 
                        <td >合计：</td>                        
			           <td></td><td></td><td></td>                      

			            <td></td>
                        <td><%=getsum("LTotalPrice")%></td>
                        <td></td>
                        <td><%=getsum("LDownAmount")%></td>
                        <td><%=getsum("LAmountFinancing")%></td>
                        
                        <td></td><td></td>
                        
                        <td><%=getsum("LContractAmount")%></td>
                        <td></td>                       
                        <td ><%=getsum("LPay")%></td>
                        <td></td>  
                        <td></td>
                        <td ><%=getsum("LMFee")%></td>
                        <td></td>  
                        <td></td>
                       
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        <td></td>
                        
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr target="sid_user" rel="<%# Eval("FnncLsId") %>" ondblclick="FXFinanceLeaseMasterList_RowEdit(<%# Eval("FnncLsId") %>)" >
                        <td><%# Eval("FnncLsId")%></td>
                       
                        <td ><%# Eval("LeaseCompany")%></td>  
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("CustomerName")%></td>
                         <td><%# Eval("MachineType")%></td>
                        <td><%# Eval("SerialNumber")%></td>                        

			            <td><%# FormatDecimalToStrings(Eval("LExpiresYear"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LTotalPrice"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LowProportion"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LDownAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LAmountFinancing"),"N")%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LMonthRent"),"N")%> <%# Convert.ToDecimal(Eval("LMonthRent2")) == 0 ? "" : "/" + FormatDecimalToStrings(Eval("LMonthRent2"),"N")%></td>
                        <td><%# Eval("LExpiresMonth")%> <%# Convert.ToDecimal(Eval("LExpiresMonth2")) == 0 ? "" : "/" + Convert.ToString(Eval("LExpiresMonth2"))%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LContractAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LByStages "),"N")%></td>

                       
                        <td ><%# FormatDecimalToStrings(Eval("LPay"),"N")%></td>
                          <td ><%# FormatDecimalToStrings(Eval("LPayYiFu"),"N")%></td>
                        <td><%# getLPayStatus(Eval("LPayStatus"))%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFee"),"N")%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFeeYiFu"),"N")%></td>
                         <td><%# getLMFeeStatus(Eval("LMFeeStatus"))%></td>
                       
                        <td><%# GetDateShowType(Eval("LOrderDate"))%></td>
                         <td><%# GetDateShowType(Eval("OGetDate"))%></td>
                        <td><%# GetDateShowType(Eval("OSubmitDate"))%></td>
                        <td><%# GetDateShowType(Eval("PassDate"))%></td>
                       <td><%# Eval("OContractPost ")%></td>
                       
                        <td><%# getOInsureStatus(Eval("OInsureStatus")) %></td>
                         <td><%# Eval("GPSNumber")%></td>
                       <td><%# Eval("CustomerMobile ")%></td>
                        <td><%# Eval("CustomerAddress ")%></td>
                       <td><%# Eval("ORemark")%></td>
                        
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                      
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                <%} %>
                <%if (LeaseStatus == 3)
                  { %>
                <table class="table" width="3500" layouth="185" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                  
                     <th <%=GetDataListOrder("FnncLsId") %>>编号</th>
                    <th>合同号</th> 
                    <th <%=GetDataListOrder("LeaseCompany") %>>租赁公司</th>      
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                    <th align="center" >用户</th>
                    <th  <%=GetDataListOrder("MachineType") %>>机型</th>
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>
                    <th  align="center" <%=GetDataListOrder("LExpiresYear") %>>期限(年)</th>
                    <th  <%=GetDataListOrder("LTotalPrice") %>>售价 </th>
                    <th  >首付(%)</th>
                    <th >首付金额</th>
                    <th  >融资额 </th>                    
                    
                    <th >月租金</th>
                    <th >期数</th>
                   
                    <th  >合同金额</th>
                   <th >首付(置换)分期申请</th>

                    

                     <th >应付首付款</th>
                     <th >已付首付款</th>
                    <th <%=GetDataListOrder("LPayStatus") %>>应付首付款支付</th>
                    <th >管理费</th>
                     <th >已付管理费</th>
                    <th <%=GetDataListOrder("LMFeeStatus") %>>管理费支付</th>
                    
                    <th <%=GetDataListOrder("LOrderDate") %>>接单日期</th>
                    <th <%=GetDataListOrder("OGetDate") %>>资料收齐日期</th>
                    <th <%=GetDataListOrder("OSubmitDate") %>>提交审核日期</th>
                    <th <%=GetDataListOrder("PassDate") %>>审核通过日期</th>  
                    <th <%=GetDataListOrder("LoansDate") %>>预计放款日期</th>  
                    <th <%=GetDataListOrder("OContractPost") %>>合同邮寄情况</th> 
                    <th <%=GetDataListOrder("OInsureStatus") %>>投保情况</th>
                    <th >GPS号</th>
                    <th >联系电话</th>
                    <th >地址</th>
                   <th>备注</th>
                </tr>
                </thead>
                <asp:repeater id="rpMenu3" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr class="totalitemtr" >
                        <td></td>
                        <td></td>
                        <td></td> 
                        <td >合计:</td>                        
			            <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td><%=getsum("LTotalPrice")%></td>
                        <td></td>
                        <td><%=getsum("LDownAmount")%></td>
                        <td><%=getsum("LAmountFinancing")%></td>
                        
                        <td></td>
                        <td></td>
                        
                        <td><%=getsum("LContractAmount")%></td>
                        <td></td>

                       
                        <td ><%=getsum("LPay")%></td>
                         <td></td>
                        <td></td>
                        <td ><%=getsum("LMFee")%></td>
                         <td></td>
                        <td></td>
                       
                      <td></td>
                       <td></td>
                       <td></td>
                      <td></td>
                      <td></td>
                      <td></td>
                       <td></td>
                      <td></td>
                       <td></td>
                        <td></td>
                        <td></td>
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr target="sid_user" rel="<%# Eval("FnncLsId") %>" ondblclick="FXFinanceLeaseMasterList_RowEdit(<%# Eval("FnncLsId") %>)" >
                        <td><%# Eval("FnncLsId")%></td>
                        <td ><%# Eval("ContractNum")%></td>  
                        <td ><%# Eval("LeaseCompany")%></td>  
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("CustomerName")%></td>
                         <td><%# Eval("MachineType")%></td>
                        <td><%# Eval("SerialNumber")%></td>

                        

			            <td><%# FormatDecimalToStrings(Eval("LExpiresYear"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LTotalPrice"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LowProportion"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LDownAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LAmountFinancing"),"N")%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LMonthRent"),"N")%> <%# Convert.ToDecimal(Eval("LMonthRent2")) == 0 ? "" : "/" + FormatDecimalToStrings(Eval("LMonthRent2"),"N")%></td>
                        <td><%# Eval("LExpiresMonth")%> <%# Convert.ToDecimal(Eval("LExpiresMonth2")) == 0 ? "" : "/" + Convert.ToString(Eval("LExpiresMonth2"))%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LContractAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LByStages"),"N")%></td>

                       
                        <td ><%# FormatDecimalToStrings(Eval("LPay"),"N")%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LPayYiFu"),"N")%></td>
                        <td><%# getLPayStatus(Eval("LPayStatus"))%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFee"),"N")%></td>
                         <td ><%# FormatDecimalToStrings(Eval("LMFeeYiFu"),"N")%></td>
                         <td><%# getLMFeeStatus(Eval("LMFeeStatus"))%></td>
                       
                        <td><%# GetDateShowType(Eval("LOrderDate"))%></td>
                         <td><%# GetDateShowType(Eval("OGetDate"))%></td>
                        <td><%# GetDateShowType(Eval("OSubmitDate"))%></td>
                        <td><%# GetDateShowType(Eval("PassDate"))%></td>
                        <td><%# GetDateShowType(Eval("LoansDate"))%></td>
                       <td><%# Eval("OContractPost")%></td>
                        <td><%# getOInsureStatus(Eval("OInsureStatus"))%></td>
                          <td><%# Eval("GPSNumber")%></td>
                       <td><%# Eval("CustomerMobile")%></td>
                        <td><%# Eval("CustomerAddress")%></td>
                      <td><%# Eval("ORemark")%></td>
                       
                       
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                      
                      </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                <%} %>
                <%if (LeaseStatus == 4)
                  { %>
                <table class="table" width="3500" layouth="185" >                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <thead >
                <tr  >
                  
                     <th <%=GetDataListOrder("FnncLsId") %>>编号</th>
                    <th>合同号</th> 
                    <th <%=GetDataListOrder("LeaseCompany") %>>租赁公司</th>      
                    <th <%=GetDataListOrder("AliasName") %>>经销商</th>
                    <th align="center" >用户</th>
                    <th  <%=GetDataListOrder("MachineType") %>>机型</th>
                    <th  <%=GetDataListOrder("SerialNumber") %>>机号</th>

                    <th <%=GetDataListOrder("LTotalPeriods") %>>总期数</th>
                    <th <%=GetDataListOrder("LEvadePeriods") %>>应付期数</th>
                    <th <%=GetDataListOrder("LPaidPeriods") %>>已付期数</th>
                    <th <%=GetDataListOrder("LExpiryPeriods") %>>逾期期数</th>
                    <th <%=GetDataListOrder("LastPayDate") %>>最后支付时间</th>

                    <th  align="center" <%=GetDataListOrder("LExpiresYear") %>>期限(年)</th>
                    <th  <%=GetDataListOrder("LTotalPrice") %>>售价 </th>
                    <th  >首付(%)</th>
                    <th >首付金额</th>
                    <th  >融资额 </th>                    
                    
                    <th >月租金</th>
                    <th >期数</th>
                    <th >总应付租金 </th> 
                    
                    <th >累计已付租金</th>
                    <th >剩余租金</th>
                    <th  >合同金额</th>
                   <th >首付(置换)分期申请</th>

                    

                     <th >应付首付款</th>
                     <th >已付首付款</th>
                    <th <%=GetDataListOrder("LPayStatus") %>>应付首付款支付</th>

                     <th >支付日期</th>
                    <th >管理费</th>
                     <th >已付管理费</th>
                    <th <%=GetDataListOrder("LMFeeStatus") %>>管理费支付</th>
                     <th >支付日期</th>

                    <th <%=GetDataListOrder("MaterialStatus") %>>资料、协议收集完成</th>
                    
                    <th <%=GetDataListOrder("LOrderDate") %>>接单日期</th>
                    <th <%=GetDataListOrder("OGetDate") %>>资料收齐日期</th>
                    <th <%=GetDataListOrder("OSubmitDate") %>>提交审核日期</th>
                    <th <%=GetDataListOrder("PassDate") %>>审核通过日期</th>  
                    <th >审核时长(天)</th>
                    <th <%=GetDataListOrder("LoansDate") %>>放款日期</th>  
                    <th >放款时长(天)</th>
                    <th >联系电话</th>
                    <th >地址</th>
                    <th >GPS号</th>
                    <th >GPS状态</th>
                    <th >结清状态</th>
                    <th <%=GetDataListOrder("OInsureStatus") %>>投保情况</th>
                    <th>备注</th>
                  
                </tr>
                </thead>
                <asp:repeater id="rpMenu4" runat="server">
                    <HeaderTemplate> 
                    <tbody>
                    <tr class="totalitemtr" >
                        <td></td>
                        <td ></td>  
                        <td ></td>  
                        <td >合计:</td>                        
			            <td></td>
                         <td></td>
                        <td></td>

                        <td ></td>
                        <td ></td>
                        <td ></td>
                        <td ></td>
                        <td ></td>

			            <td></td>
                        <td><%=getsum("LTotalPrice")%></td>
                        <td></td>
                        <td><%=getsum("LDownAmount")%></td>
                        <td><%=getsum("LAmountFinancing")%></td>
                        
                        <td></td>
                        <td></td>
                        <td><%=getsum("LEvadeRent")%></td>
                        
                        <td ><%=getsum("LPaidRent")%></td>
                        <td ><%=getsum("LResiduerRent")%></td>
                        <td><%=getsum("LContractAmount")%></td>
                        <td></td>

                       

                       
                        <td ><%=getsum("LPay")%></td>
                        <td></td>
                         <td></td>
                         <td></td>
                        <td ><%=getsum("LMFee")%></td>
                         <td></td>
                        <td ></td>
                        <td></td>
                        <td ></td>
                        <td></td>
                        <td ></td>
                        <td ></td>
                       <td ></td>
                        <td ></td>
                        <td ></td>
                       <td ></td>
                       <td ></td>
                        <td ></td>
                       <td ></td>
                        <td ></td>
                        <td ></td>
                        <td ></td>
                        <td></td>
		            </tr>
                    </HeaderTemplate>
                    <ItemTemplate> 
                    <tr target="sid_user" rel="<%# Eval("FnncLsId") %>" ondblclick="FXFinanceLeaseMasterList_RowEdit(<%# Eval("FnncLsId") %>)" >
                        <td><%# Eval("FnncLsId")%></td>
                        <td ><%# Eval("ContractNum")%></td>  
                        <td ><%# Eval("LeaseCompany")%></td>  
                        <td ><%# Eval("AliasName")%></td>                        
			            <td><%# Eval("CustomerName")%></td>
                         <td><%# Eval("MachineType")%></td>
                        <td><%# Eval("SerialNumber")%></td>

                         <td ><%# Eval("LTotalPeriods")%></td>
                        <td ><%# Eval("LEvadePeriods")%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LPaidPeriods"),"G")%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LExpiryPeriods"),"G")%></td>
                        <td ><%# Eval("LastPayDate")%></td>

			            <td><%# FormatDecimalToStrings(Eval("LExpiresYear"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LTotalPrice"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LowProportion"),"G")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LDownAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LAmountFinancing"),"N")%></td>
                        
                        <td><%# FormatDecimalToStrings(Eval("LMonthRent"),"N")%> <%# Convert.ToDecimal(Eval("LMonthRent2")) == 0 ? "" : "/" + FormatDecimalToStrings(Eval("LMonthRent2"),"N")%></td>
                        <td><%# Eval("LExpiresMonth")%> <%# Convert.ToDecimal(Eval("LExpiresMonth2")) == 0 ? "" : "/" + Convert.ToString(Eval("LExpiresMonth2"))%></td>
                        <td><%# FormatDecimalToStrings(Eval("LEvadeRent"),"N")%></td>
                        
                        <td ><%# FormatDecimalToStrings(Eval("LPaidRent"),"N")%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LResiduerRent"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LContractAmount"),"N")%></td>
                        <td><%# FormatDecimalToStrings(Eval("LByStages"),"N")%></td>

                       

                       
                        <td ><%# FormatDecimalToStrings(Eval("LPay"),"N")%></td>
                          <td ><%# FormatDecimalToStrings(Eval("LPayYiFu"),"N")%></td>
                        <td><%# getLPayStatus(Eval("LPayStatus"))%></td>
                        <td><%# GetDateShowType(Eval("LDownAmountDate"))%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFee"),"N")%></td>
                        <td ><%# FormatDecimalToStrings(Eval("LMFeeYiFu"),"N")%></td>
                         <td><%# getLMFeeStatus(Eval("LMFeeStatus"))%></td>
                         <td><%# GetDateShowType(Eval("LMFeeDate"))%></td>
                        <td ><%# getMaterialStatus(Eval("MaterialStatus"))%></td>
                        <td><%# GetDateShowType(Eval("LOrderDate"))%></td>
                         <td><%# GetDateShowType(Eval("OGetDate"))%></td>
                        <td><%# GetDateShowType(Eval("OSubmitDate"))%></td>
                        <td><%# GetDateShowType(Eval("PassDate"))%></td>
                        <td><%# Eval("PassDay")%></td>
                        <td><%# GetDateShowType(Eval("LoansDate"))%></td>
                        <td><%# Eval("LoansDay")%></td>
                       <td><%# Eval("CustomerMobile ")%></td>
                        <td><%# Eval("CustomerAddress ")%></td>
                        <td><%# Eval("GPSNumber")%></td>
                         <td><%# getGPSStatus(Eval("GPSStatus"))%></td>
                        <td><%# getCleanUpStatus(Eval("CleanUpStatus"))%></td>
                        <td><%# getOInsureStatus(Eval("OInsureStatus"))%></td>
                        <td><%# Eval("ORemark") %></td>
		            </tr>
                    </ItemTemplate>
                    <FooterTemplate> 
                      
                    </tbody>            
                    </FooterTemplate>
                </asp:repeater>
                </table>
                <%} %>
                <div class="panelBar">
                    <div class="pages">
                        <span>显示</span>
                        <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})" >
                            <%=SetnumPerPage() %>
                        </select>
                        <span>条，共<%=TotalCount%>条</span>
                    </div>
                    <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
                        pagenumshown="10" currentpage="<%=pageNum %>">
                    </div>
                </div>
            </div>
            </form>
		</div>
                
        <div  id="FXFinanceLeaseAddEdit"  class="unitBox" layoutH="12"  style="  display:none; overflow:auto; border:solid 1px #CCC; background:#fff;">
            添加修改
        </div>                      
               
</div>

<script type="text/javascript" >
    function FXFinanceLeaseMasterList_RowEdit(_FnncLsId) {

        $("#FXFinanceLeaseMasterList").css("float", "left").css("width", "350");
        $("#FXFinanceLeaseAddEdit").css("margin-left", "355").show();
        //alert(_customerId);
        //1.显示通话及消费记录
        var rel = "FXFinanceLeaseAddEdit";
        var href = "FXModel/FXFinanceLeaseUpdate.aspx?FnncLsId=" + _FnncLsId;
        if (rel) {
            var $rel = $("#" + rel);
            $rel.loadUrl(href, {}, function () {
                $rel.find("[layoutH]").layoutH();
            });
        }

    }

    function FXFinanceLeaseMasterList_ADD() {

        $("#FXFinanceLeaseMasterList").css("float", "left").css("width", "350");
        $("#FXFinanceLeaseAddEdit").css("margin-left", "355").show();
        //alert(_customerId);
        //1.显示通话及消费记录
        var rel = "FXFinanceLeaseAddEdit";
        var href = "FXModel/FXFinanceLeaseAdd.aspx";
        if (rel) {
            var $rel = $("#" + rel);
            $rel.loadUrl(href, {}, function () {
                $rel.find("[layoutH]").layoutH();
            });
        }
    }

    function FXFinanceLeaseMasterList_Close() {
        $("#FXFinanceLeaseMasterList").css("float", "").css("width", "");
        $("#FXFinanceLeaseAddEdit").css("margin-left", "355").hide();
    }

    function FXFinanceLeaseMasterList_SettingDefault() {
        /*
        <input type="hidden" name="AliasName" value="<%=AliasName %>" />
                 <input type="hidden" name="LeaseStatus" value="<%=LeaseStatus %>" />
                <input type="hidden" name="CustomerName" value="<%=CustomerName %>" />                
                <input type="hidden" name="LeaseCompany" value="<%=LeaseCompany %>" />
                <input type="hidden" name="SerialNumber" value="<%=SerialNumber %>" />
                <input type="hidden" name="ContractNum" value="<%=ContractNum %>" />
                <input type="hidden" name="FnncLsId" value="<%=FnncLsId %>" />                
                <input type="hidden" name="onlyshowExpiryPeriods" value="<%=onlyshowExpiryPeriods %>" />
                <input type="hidden" name="orderField" value="<%=orderField %>" />
                <input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
                <input type="hidden" name="pageNum" value="1" />
                <input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
        */

       // $("#FXFinanceLeaseMasterList").find(":hidden[name='LeaseStatus']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='CustomerName']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='AliasName']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='LeaseCompany']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='SerialNumber']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='ContractNum']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='FnncLsId']").val('');
        $("#FXFinanceLeaseMasterList").find(":input[name='onlyshowExpiryPeriods']").val('');
    }


</script>